<div class="contact_map">
	<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=bBNVNmDlZ8Lj8zLBIVfdApHLmHXMY0yE&s=1"></script>
	<div id="allmap" style="width:100%;height:400px;"></div>
	<script type="text/javascript">
	// 百度地图API功能
	var map = new BMap.Map("allmap");
	map.enableScrollWheelZoom();    //启用滚轮放大缩小，默认禁用
	map.centerAndZoom(new BMap.Point({{'baidu'|getCfgVar}}), 15);
	//icon
	var point = new BMap.Point({{'baidu'|getCfgVar}});
	var img = "{{$smarty.const.__APP__}}images/map.png";
	var myIcon = new BMap.Icon(img, new BMap.Size(25,25));
	var marker1 = new BMap.Marker(point,{icon:myIcon});
	//var marker1 = new BMap.Marker(new BMap.Point(116.384, 39.925));  // 创建标注
	map.addOverlay(marker1);              // 将标注添加到地图中
	//创建信息窗口
	//var infoWindow1 = new BMap.InfoWindow("普通标注");
	//marker1.addEventListener("click", function(){this.openInfoWindow(infoWindow1);});
	//

	</script>
</div>